from flask import Flask
from api import create_app, db
from api.models import User, VerificationCode

app = create_app()

# 添加 Flask CLI 上下文
@app.shell_context_processor
def make_shell_context():
    return {
        'db': db,
        'User': User,
        'VerificationCode': VerificationCode
    }

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000) 